package com.scpii.universal.hibernate.entity;

import org.apache.commons.lang.StringUtils;

import com.scpii.universal.util.DateAndString;

/**
 * AppPageViewTab entity. @author MyEclipse Persistence Tools
 */

public class AppPageViewTab implements java.io.Serializable {

	private Integer intViewId;
	private Integer intModuleStyleId;
	private Integer intResourceId;
	private String varViewName;
	private Integer intViewOrder;
	private Integer intDeleteSign;
	private String datUpdateDatetime;
	private Integer intViewBingdDataType;
	private String varViewConfig;

	// Constructors

	/** default constructor */
	public AppPageViewTab() {
	}
	
	// Property accessors

	public Integer getIntViewId() {
		return this.intViewId;
	}

	public void setIntViewId(Integer intViewId) {
		this.intViewId = intViewId;
	}

	public Integer getIntModuleStyleId() {
		return this.intModuleStyleId;
	}

	public void setIntModuleStyleId(Integer intModuleStyleId) {
		this.intModuleStyleId = intModuleStyleId;
	}

	public Integer getIntResourceId() {
		return this.intResourceId;
	}

	public void setIntResourceId(Integer intResourceId) {
		this.intResourceId = intResourceId;
	}

	public String getVarViewName() {
		return DateAndString.nullControl(this.varViewName);
	}

	public void setVarViewName(String varViewName) {
		this.varViewName = varViewName;
	}

	public Integer getIntViewOrder() {
		return this.intViewOrder;
	}

	public void setIntViewOrder(Integer intViewOrder) {
		this.intViewOrder = intViewOrder;
	}

	public Integer getIntDeleteSign() {
		return this.intDeleteSign;
	}

	public void setIntDeleteSign(Integer intDeleteSign) {
		this.intDeleteSign = intDeleteSign;
	}

	public String getDatUpdateDatetime() {
		return DateAndString.nullControl(this.datUpdateDatetime);
	}

	public void setDatUpdateDatetime(String datUpdateDatetime) {
		this.datUpdateDatetime = datUpdateDatetime;
	}

	public Integer getIntViewBingdDataType() {
		return intViewBingdDataType;
	}

	public void setIntViewBingdDataType(Integer intViewBingdDataType) {
		this.intViewBingdDataType = intViewBingdDataType;
	}

	public String getVarViewConfig() {
		return varViewConfig;
	}

	public void setVarViewConfig(String varViewConfig) {
		this.varViewConfig = varViewConfig;
	}
	
	public boolean isContainStatusBar() {
		if (!StringUtils.isBlank(this.varViewConfig)
				&& this.varViewConfig.contains("ItemBottomBarInfo")) {
			return true;
		}
		return false;
	}
}